﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using eProject.Model;

namespace eProject.View
{
    /// <summary>
    /// Interaction logic for ActivityView.xaml
    /// </summary>
    public partial class ActivityView : UserControl
    {
        public int Scale { get; set; }
        public ActivityView()
        {
            InitializeComponent();
        }        
    }

    public class DaysToPixelsConverter : IValueConverter//TODO move this class?
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var val = (int)value;
            var scale = (int)parameter;
            int result = val * scale;

            return result;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var val = (int)value;
            var scale = (int)parameter;
            int result = val / scale;

            return result;
        }
    }

    
}
